from fastapi import APIRouter
from src.model import VersionResponse
from src import settings

router = APIRouter()
@router.get("/",)
async def root():
    return "Hello! This is Waybill Crawler API Server!"

@router.get("/version", response_model=VersionResponse)
async def get_version():
    return VersionResponse(
        version=settings.VERSION_INFO,
        release_date=settings.VERSION_RELEASE_DATE
    )

